home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / shareware / Flash_Oyunlar.exe / rocketbike.swf / scripts / DefineButton2_368 / BUTTONCONDACTION on(press).as next >
Encoding:
Text File  |  2005-07-13  |  439 b   |  20 lines

  1. on(press){
  2.    if(_name == 0)
  3.    {
  4.       _parent.nextFrame();
  5.       this.onEnterFrame = function()
  6.       {
  7.          if(!_parent.hitTest(_root._xmouse,_root._ymouse,true))
  8.          {
  9.             _parent.chosen = false;
  10.             _parent.prevFrame();
  11.             this.onEnterFrame = null;
  12.          }
  13.       };
  14.    }
  15.    else if(price._currentframe == 1 and tapa._visible != true)
  16.    {
  17.       price.gotoAndStop("buy");
  18.    }
  19. }
  20.